package com.wolfsea.viewpager2demo.ui.home

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.wolfsea.viewpager2demo.R

class HomeViewModel : ViewModel() {

    private val _text = MutableLiveData<String>().apply {
        value = "This is home Fragment"
    }
    val text: LiveData<String> = _text

    private val dataSet = MutableLiveData<MutableList<Int>>().apply {
        value = mutableListOf<Int>().apply {
            add(R.drawable.p1)
            add(R.drawable.p2)
            add(R.drawable.p3)
            add(R.drawable.p4)
        }
    }
    val mDataSet = dataSet

}